<template>
	<view class="page">
		<view class="main-content">
			<view class="title">{{data.name}}</view>
			<view class="time">{{data.createTime}}</view>
			<view class="content">
				{{data.content}}
				<!-- <mp-html :content="data.content"/> -->
			</view>
		</view>
	</view>
</template>

<script>
	import {
		messageDetails,
		messageMemo,
	} from "@/api"
	export default {
		data() {
			return {
				pageData: {},
				data:{},
				content: ``,
				pageTitle: '',
			};
		},
		onShow() {
		},
		onLoad(option) {
			this.pageData = option
			this.getData()
		},
		methods: {
			getData() {
				if(this.pageData.memo == '0'){
					messageMemo({
						id:this.pageData.id,
						memo:'1',
					})
				}
				
				this.messageDetails()
			},
			messageDetails(){
				messageDetails(this.pageData.id).then(res => {
					this.data = res.data
				})
			},
		}
	};
</script>

<style scoped lang="scss">
	.main-content {
		margin-top: 32rpx;
		padding: 40rpx;
		background: #ffffff;
		.title{
			font-family: PingFang SC, PingFang SC;
			font-weight: 600;
			font-size: 38rpx;
			color: #000000;
			text-align: center;
		}
		.time{
			font-family: PingFang SC, PingFang SC;
			font-weight: 400;
			font-size: 29rpx;
			color: #666668;
			text-align: center;
			padding: 20rpx 0 30rpx 0;
		}
		.content{
			
		}
	}
</style>